package com.feng.controller.back;

import com.feng.entity.Company;
import com.feng.service.CompanyService;
import com.feng.vo.ResultVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 丰
 * @date: 2023/1/1 16:24
 */
@RestController
@RequestMapping("/back/company")
@Api(tags = "后台公司信息接口")
public class CompanyController {

    @Autowired
    private CompanyService companyService;

    @ApiOperation("更改公司信息")
    @PostMapping("/update")
    public ResultVo<Integer> update(@RequestBody Company company){
        return companyService.update(company);
    }
}
